Skip to content

fix(nav): hide experimental-site banner when no legacy site configured - #406

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/hide-empty-legacy-site-banner
Aug 29, 2026
Merged

fix(nav): hide experimental-site banner when no legacy site configured#406
github-actions[bot] merged 1 commit into
mainfrom
fix/hide-empty-legacy-site-banner

Conversation

@catomean

Copy link
Copy Markdown
Collaborator

Summary

  • Visitor feedback flagged the mobile menu's "Experimentelle Site – zur aktuellen Site" banner as something that should be deleted.
  • ORG.websiteLegacy is '' for evig (no legacy site — see the comment on that field in src/config/org.ts), but MobileMenu.tsx rendered the banner unconditionally, linking to an empty href.
  • Gated the banner block on ORG.websiteLegacy being truthy, matching the config comment's original intent.

Test plan

  • npm run typecheck — pass
  • npx eslint src/components/layout/MobileMenu.tsx — pass
  • Ran the dev server locally, opened the mobile nav drawer at 390px, confirmed the "Experimentelle Site" banner and its empty link no longer render (screenshot verified)

🤖 Generated with Claude Code

…ured

ORG.websiteLegacy is empty for evig (no legacy site), but the mobile
menu's "Experimentelle Site – zur aktuellen Site" banner rendered
unconditionally with a link to an empty href. Gate it on
ORG.websiteLegacy so it only shows when a legacy site exists to link
to, matching the intent already documented on that config field.

Reported by a visitor via the site feedback widget.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions
github-actions Bot merged commit 899769d into main Aug 29, 2026
8 checks passed
@github-actions
github-actions Bot deleted the fix/hide-empty-legacy-site-banner branch August 29, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant